#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTcpServer> //监听套接字
#include <QTcpSocket> //通信套接字//对方的(客户端的)套接字(通信套接字)
#include <QtNetwork>
#include <qpixmap.h>
#include <QPixmap>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    QUdpSocket *qus = new QUdpSocket;
    uchar *yuvbuff = new uchar[640*480*2];
public:

    explicit MainWindow(QWidget *parent = 0);
    void yuv420_toRGB(int width, int height, uchar *buf,uchar* RGBBuffer);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();
    void acceptConnection();

    void on_pushButton_2_clicked();

private:
    Ui::MainWindow *ui;
};



#endif // MAINWINDOW_H
